<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../js/jQuery-1.8.3 (1).js"></script>
		<script type="text/javascript">
			$(document).ready(function(){
				$("form").submit(function(){
					var mail=$("#myform:text").val();
					if (mail=="") {//检测Email是否为空
			alert("Email不能为空");
			return false;
		}
		if (mail.indexOf("@") == -1) {
			alert("Email格式不正确\n必须包含@");
			return false;
		}
		if (mail.indexOf(".") == -1) {
			alert("Email格式不正确\n必须包含.");
			return false;
		}
		return true;
					
				})
			})
		</script>
	</head>
	<body>
		<form method="post" name="myform" id="myform">
			<dl>
				<dt>电子邮箱:</dt>
				<dd><input id="email" type="text" class="inputs"></dd>
			</dl>
			<dl>
				 <dt>性别：</dt>
				 <dd>
					 <input id="gen" style="border:0px;" type="radio" value="男" checked="checked" />
					 <img src="../img/Male.gif" width="20" height="20" alt="alt" />男&nbsp;
					 <input name="gen" style="border:0px;" type="radio" value="女" class="input" />
					 <img src="../img/Female.gif" width="20" height="20" alt="alt" />女
				 </dd>
			 </dl>
		</form>
	</body>
</html>
